#include "triangleAgent.h"

// Calls superclass constructor as well
triangleAgent::triangleAgent(void) : agent(TRIANGLE, vertex(0,0), AVector(0,0), RED)
{
	centerLength = 1;
	//position = vertex(0,0);
	//velocity = AVector(0,0);
	angleRef = (float) HALFANGLE;

	sideLength = centerLength / degcos((float)HALFANGLE);
	//direction = 0;
}

// Calls superclass constructor as well
triangleAgent::triangleAgent(vertex pos, AVector vel, float inSize, team_T iTeam)
	: agent(TRIANGLE, pos, vel, iTeam)
{
	centerLength = inSize;
	//position = pos;
	//velocity = vel;
	angleRef = (float) HALFANGLE;

	sideLength = centerLength / degcos((float)HALFANGLE);
	//direction = velocity.getDirection();
}


triangleAgent::~triangleAgent(void)
{
}
